import Request from './index'
export class http {
  public axios: any
  constructor() {
    this.axios = new Request()
  }
  public post(url: string, data?: object) {
    return this.axios.instance.post(url, data)
  }
  public get(url: string, data?: object) {
    return this.axios.instance.get(url, data)
  }
  public getEquipment(id: number) {
    return this.get(`/${id}?simple=false`)
  }
  public getSingleEquipment(id: number) {
    return this.get(`/GetRandomPropsByEqId?id=${id}`)
  }
}
